# Maintainer:
pkgname=py3-cookies
pkgver=2.2.1
pkgrel=5
pkgdesc="generate and validate cookies check digits"
options="!check" # test_encoding_assumptions fails
url="https://pypi.python.org/pypi/cookies/"
arch="noarch"
license="BSD-3-Clause"
depends="py3-amqp"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="https://files.pythonhosted.org/packages/source/c/cookies/cookies-$pkgver.tar.gz"
builddir="$srcdir/cookies-$pkgver"

replaces="py-cookies" # Backwards compatibility
provides="py-cookies=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	pytest-3
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="76f362a9a1d74b87c90c5b91ad806d872612d31f487e4067a627409316f6099602c9e5a429f85ce20adcb0a7b63dd131b9e1ecc5c0c6444d1569367432a719de  cookies-2.2.1.tar.gz"
